import request from "../util/request";

// 获取热搜列表
export function get_search_hot() {
  return request({
    url: "/search/hot",
  });
}

// 获取搜索到的数据
export function get_search(keywords) {
  return request({
    url: "/search",
    params: {
      keywords,
    },
  });
}

// 获取搜索建议
export function get_search_suggest(keywords, type = "mobile") {
  return request({
    url: "/search/suggest",
    params: {
      keywords,
      type,
    },
  });
}
